import { Todo } from "@/types/todo";

export function saveTods(todos:Todo[]){
    localStorage.setItem('todosKey',JSON.stringify(todos))
}
export function readTodos ():Todo[]{
    return JSON.parse(localStorage.getItem('todosKey')||'[]')
}